const fs = require('fs')
const chalk = require('chalk')

const result = fs.readFile('./text.txt',(err,data)=>{
    if(err){
        console.log(err)
    } else {
        console.log(chalk.red(data.toString()))
    }
});

console.log(result)